package com.itic.system.carrage.templateRegion.persistence.dao;

import java.util.List;
import java.util.Map;

import com.itic.appbase.framework.common.annotation.IticDBDao;
import com.itic.appbase.framework.common.persistence.dao.CrudDao;
import com.itic.system.carrage.templateRegion.persistence.basedao.CarrageTemplateRegionMapper;
import com.itic.system.carrage.templateRegion.persistence.model.CarrageTemplateRegion;
import com.itic.system.carrage.templateRegion.persistence.model.CarrageTemplateRegionExample;
import com.itic.system.carrage.templateRegion.persistence.model.Condition;


@IticDBDao
public interface CarrageTemplateRegionDao
     extends CarrageTemplateRegionMapper,CrudDao<CarrageTemplateRegion,CarrageTemplateRegionExample> {
	
	List<String> getBypieceId(Condition condition);
	
	List<CarrageTemplateRegion> getRegion(Condition condition);
	/**
	 * 根据模板ID删除
	 * @param templateId
	 */
	void delBytemplateId(String templateId);

	/**
	 * 根据模板Id 以及 地区Id查询运费地区
	 * @param params
	 * @return
	 */
	CarrageTemplateRegion getCarrageTemplateRegionByTemplateIdAndRegionId(Map<String,Object> params);
}